#include "register_kfpcs.h"
#include "ui_register_kfpcs.h"
#include "qfiledialog.h"
Dialog_kfpcs::Dialog_kfpcs(QWidget* parent) :
    QDialog(parent),
    ui(new Ui::Dialog_kfpcs)
{
    ui->setupUi(this);
}

Dialog_kfpcs::~Dialog_kfpcs()
{
    delete ui;
}

void Dialog_kfpcs::on_buttonBox_accepted()
{
    emit sendData(ui->lineEdit->text(), ui->lineEdit_2->text(), ui->lineEdit_3->text(),
        ui->lineEdit_4->text(), ui->textBrowser->toPlainText(), ui->textBrowser_2->toPlainText());

    this->close();
}

void Dialog_kfpcs::on_pushButton_clicked()
{
    QString PathName_1 = QFileDialog::getOpenFileName(
        this, tr("open  file"),
        "./data-master/tutorials", tr("pcb files(*.pcd *.ply) ;;All files (*.*)"));
    ui->textBrowser->setText(PathName_1);

}

void Dialog_kfpcs::on_pushButton_2_clicked()
{
    QString PathName_2 = QFileDialog::getOpenFileName(
        this, tr("open  file"),
        "./data-master/tutorials", tr("pcb files(*.pcd *.ply) ;;All files (*.*)"));
    ui->textBrowser_2->setText(PathName_2);
}

